-- gui_button.lua

gui_button = class('gui_button', gui_element)

function gui_button:initialize()
	self.string = ""
	self.pos = {x = 0, y = 0}
	self.size = {w = 0, h = 0}
	self.panel_x = 0
	self.panel_y = 0
	self.colour = {r = 255, g = 255, b = 255}
	self.border = {r = 255, g = 255, b = 255}
	self.name = "Button"
	self.clicked = false
end

function gui_button:draw()
	love.graphics.setColor(self.colour.r, self.colour.g, self.colour.b)
	love.graphics.print(self.string, self.pos.x + self.panel_x, self.pos.y + self.panel_y)
	
	love.graphics.setColor(self.border.r, self.border.g, self.border.b)
	love.graphics.rectangle("line", self.pos.x + self.panel_x, self.pos.y + self.panel_y, self.size.w, self.size.h)
end

function gui_button:update(dt)
end